<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<!--    内容详情-->
    {if($aid_show)}

        {if($aid_show.image)}
        <div class="form-group">
            <label  class="control-label col-xs-12 col-sm-2">关联内容封面:</label>
            <div class="col-xs-12 col-sm-8">
                <img style="width: 26vw;height: 19vw;object-position: center;" src="{$aid_show.image}" alt="">
            </div>
        </div>
        {/if}

        {if($aid_show.video_path)}
        <div class="form-group">
            <label  class="control-label col-xs-12 col-sm-2">关联内容视频:</label>
            <div class="col-xs-12 col-sm-8">
                <video style="width: 26vw;height: 19vw;object-position: center;" controls="controls" src="{$aid_show.video_path}"></video>
            </div>
        </div>
        {/if}

        {if($aid_show.title)}
        <div class="form-group">
            <label  class="control-label col-xs-12 col-sm-2">关联内容标题:</label>
            <div class="col-xs-12 col-sm-8">
                <input  data-rule="" class="form-control"  type="text" value="{$aid_show.title}">
            </div>
        </div>
        {/if}

        {if($aid_show.content)}
        <div class="form-group">
            <label for="c-content" class="control-label col-xs-12 col-sm-2">关联内容/简介:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea  data-rule="" class="form-control editor" rows="5" name="" cols="50" >{$aid_show.content|htmlentities}</textarea>
            </div>
        </div>
        {/if}

        {if($aid_show.file_img)}
        <div class="form-group">
            <label  class="control-label col-xs-12 col-sm-2">关联内容图片列表:</label>
            <div class="col-xs-12 col-sm-8">
                <div style="display: flex;">
                    {foreach($aid_show.file_img as $v)}
                        <img style="width: 26vw;height: 19vw;object-position: center;" src="{$v}" alt="">
                    {/foreach}
                </div>
            </div>
        </div>
        {/if}

        {if($aid_show.file_video)}
        <div class="form-group">
            <label  class="control-label col-xs-12 col-sm-2">关联内容视频列表:</label>
            <div class="col-xs-12 col-sm-8">
                <div style="display: flex;">
                    {foreach($aid_show.file_video as $v)}
                    <video style="width: 26vw;height: 19vw;object-position: center;" controls="controls" src="{$v}"></video>
                    {/foreach}
                </div>
            </div>
        </div>
        {/if}

        {if($aid_show.file_data)}
        <div class="form-group">
            <label  class="control-label col-xs-12 col-sm-2">关联内容文件列表:</label>
            <div class="col-xs-12 col-sm-8">
                <div style="display: flex;">
                    {foreach($aid_show.file_data as $k=>$v)}
                    <a href="{$v}" download="文件名称({$k})">文件({$k})</a>
                    {/foreach}
                </div>
            </div>
        </div>
        {/if}

    {/if}


<!--    评论类型-->
    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label for="c-aid" class="control-label col-xs-12 col-sm-2">{:__('Aid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-aid" data-rule="required" class="form-control" name="row[aid]" type="number" value="{$row.aid}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-pid" class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pid" data-rule="required" class="form-control" name="row[pid]" type="number" value="{$row.pid}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-user_id" class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" class="form-control selectpage" data-source="user/user/index" data-field="nickname" name="row[user_id]" type="text" value="{$row.user_id}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-comments" class="control-label col-xs-12 col-sm-2">{:__('Comments')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-comments" data-rule="required" class="form-control" name="row[comments]" type="number" value="{$row.comments}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-ip" class="control-label col-xs-12 col-sm-2">{:__('Ip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ip" data-rule="required" class="form-control" name="row[ip]" type="text" value="{$row.ip}">
        </div>
    </div>
<!--    <div class="form-group">
        <label for="c-useragent" class="control-label col-xs-12 col-sm-2">{:__('Useragent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-useragent" data-rule="required" class="form-control" name="row[useragent]" type="text" value="{$row.useragent|htmlentities}">
        </div>
    </div>-->
<!--    <div class="form-group">
        <label for="c-subscribe" class="control-label col-xs-12 col-sm-2">{:__('Subscribe')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[subscribe]', [1=>'是', 0=>'否'], $row['subscribe'])}
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
